home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFUNCS / RCVTOG.C < prev    next >
C/C++ Source or Header  |  1992-11-05  |  487b  |  18 lines

  1. /**************************************************************************
  2.  * RCVTOG.C - Convert VRECT to GRECT.
  3.  *************************************************************************/
  4.  
  5. #include "gemfintl.h"
  6.  
  7. GRECT *rc_vtog(pvrect, pgrect)
  8.     register VRECT *pvrect;
  9.     register GRECT *pgrect;
  10. {
  11.     pgrect->g_x = pvrect->v_x1;
  12.     pgrect->g_y = pvrect->v_y1;
  13.     pgrect->g_w = pvrect->v_x2 - pvrect->v_x1 + 1;
  14.     pgrect->g_h = pvrect->v_y2 - pvrect->v_y1 + 1;
  15.     return pgrect;
  16. }
  17.  
  18.